package org.ruslan.kolobok.model;

public class Soldier extends AliveLevelObject<SoldierType> implements IKillable {

	public static enum SoldierState implements State {
		WALK, SHOOT, DIE
	}
	
	private int health;

	public Soldier(SoldierType type) {
		super(type);
		health = type.getHitpoints();
	}
	
	public float getSpeed() {
		return ((AliveType) type).getSpeed();
//		return getType().get
	}
	
	@Override
	public void setHealth(int health) {
		this.health = health;
	}
	
	@Override
	public int getHealth() {
		return health;
	}
	
	public SoldierState getState() {
		return (SoldierState) super.getState();
	}
}
